package cn.dragon.eatingfish;

import javax.swing.*;

public class NPC_1 extends SeaObject implements FishScore {

    public NPC_1() {
        super(80, 29, 1, 1, 4);
    }

    @Override
    public ImageIcon getImage() {
        if (getDirection() == M_LEFT) {
            return Images.fish_1_L;
        } else {
            return Images.fish_1_R;
        }
    }


    public void goDead() {
        this.setState(DEAD);
        setLife(this.getLife() - 1);
    }

    //重写接口返回分数方法
    @Override
    public int getScore() {
        return 10;
    }
}
